package com.fmdj.customer.feign;

import com.fmdj.common.util.CommonResult;
import com.fmdj.customer.controller.form.ReceiveBillMessageForm;
import com.fmdj.customer.controller.form.SendNewOrderMessageForm;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = "fmdj-snm")
public interface SnmServiceApi {

    @PostMapping("/message/order/new/sendNewOrderMessage")
    CommonResult sendNewOrderMessageAsync(SendNewOrderMessageForm form);

    @PostMapping("/message/receiveBillMessage")
    CommonResult receiveBillMessage(@Valid @RequestBody ReceiveBillMessageForm form);
}
